package edu.spbsu.nonsm00th.qdiff.parser.exception;

import java.text.MessageFormat;

/**
 * Throws if there is an empty expression or subexpression.
 *
 * @author mbuzdov
 */
public class EmptyExpressionException extends ParserException {

    public EmptyExpressionException(int position) {
        super(MessageFormat.format("There is an empty expression or subexpression, position: {0}.", position));
        this.position = position;
    }

}
